<?php
/**
 * 广告
 */


namespace app\api\controller;

use app\common\controller\Api;
use app\common\model\Ad;

class Banner extends Api {
	protected $noNeedLogin = ['index'];
	
	/**
	 * 轮播图
	 */
	public function index() {
		$id = $this->request->post('id');
		$model = new Ad();
		$banners = $model->getBannerById($id);
		$this->success(__('Select success'), $banners);
	}
}
